package com.heima.config;

import com.heima.intercept.AdminTokenIntercept;
import lombok.extern.log4j.Log4j;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;


/**
 * @author 赵超
 */
//@Configuration
@Slf4j
public class WebMvcConfiguration extends WebMvcConfigurationSupport {
//    @Autowired
//    private AdminTokenIntercept adminTokenIntercept;
//
//    @Override
//    protected void addInterceptors(InterceptorRegistry registry) {
//        log.info("启动拦截器");
//        registry.addInterceptor(adminTokenIntercept)
//                .addPathPatterns("/**")
////                .excludePathPatterns("/api/user-service/user/login");
//                .excludePathPatterns("/**");
//
//    }
}
